package zhh.tangbao.user.vo;

import com.google.common.collect.Lists;
import lombok.Data;
import zhh.tangbao.system.vo.TreeNodeVo;

import java.util.List;

/**
 * <p>
 * 描述
 * </p>
 *
 * @author 粥灰灰
 * <p>2023/4/24</p>
 */
@Data
public final class OperateTreeNodeVo extends TreeNodeVo {

    private String tableId;

    private boolean isChild;

    private List<OperateTreeNodeVo> children;

    public OperateTreeNodeVo() {
    }

    public OperateTreeNodeVo(String id, String label) {
        super(id, label);
        this.children = Lists.newArrayList();
    }

    public OperateTreeNodeVo(String id, String label, String tableId) {
        super(id, label);
        this.tableId = tableId;
        this.isChild = false;
        this.children = Lists.newArrayList();
    }


    public OperateTreeNodeVo(String id, String label, String tableId, boolean isChildren) {
        super(id, label);
        this.tableId = tableId;
        this.isChild = isChildren;
        this.children = Lists.newArrayList();
    }


    public OperateTreeNodeVo(String id, String label, List<OperateTreeNodeVo> children) {
        super(id, label);
        this.children = children;
        this.isChild = false;
    }





}
